package com.ideaaedi.zoo.example.springboot.flowable.sharding.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ideaaedi.zoo.diy.artifact.flowable.facade.DefaultBpmnHisTask;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.dto.ShardingTaskDetailQueryDTO;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.dto.ShardingTaskListQueryDTO;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.dto.TaskWithVarDTO;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.po.ActHiTaskinstPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 1.0.0
 */
@Mapper
public interface ActHiTaskinstMapper extends BaseMapper<ActHiTaskinstPO> {
    
    /**
     * 查询任务列表
     *
     * @param param 参数
     *
     * @return  任务列表
     */
    List<DefaultBpmnHisTask> listHisTask(@Param("param") ShardingTaskListQueryDTO param);
    
    /**
     * 查询任务信息
     *
     * @param param 参数
     *
     * @return  任务信息
     */
    TaskWithVarDTO detailHisTask(@Param("param") ShardingTaskDetailQueryDTO param);
}
